﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Zove.Scripting.Guikit {
    public partial class RadioButtonListDialog : Form {

        public bool Result {
            get;
            set;
        }

        public RadioButtonListDialog() {
            InitializeComponent();
        }

        public RadioButtonListDialog(string title, string message) : this() {
            this.label1.Text = message;
        }

        private void btnOk_Click(object sender, EventArgs e) {
            Result = this.radioButton1.Checked;
            this.DialogResult = DialogResult.OK;
        }

        private void btnCancel_Click(object sender, EventArgs e) {
            Result = this.radioButton1.Checked;
            this.DialogResult = DialogResult.Cancel;
        }
    }
}
